package com.itheima.test;

import com.itheima.util.EmailUtil;

import java.util.Random;

public class Demo01 {

    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        Random r = new Random();
        for (int i = 0; i < 6; i++) {
            sb.append(r.nextInt(10));
        }

        EmailUtil.sendMail("18636790181@163.com  ",sb.toString(),"注册验证码");




    }
}
